/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package _5_DB;

import java.sql.*;
import java.util.*;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author DOM
 */
public class ConnectDB {
    public Connection getConnection() throws SQLException
    {
        String DBDriver = "sun.jdbc.odbc.JdbcOdbcDriver";
            String url = "jdbc:odbc:blog";
            Connection con=DriverManager.getConnection(url);
            return con;
    }
}
